<script setup>
import {ElMessage} from 'element-plus'

const showGoodLuck =()=>{
  ElMessage({
    message: '好运+1',
    type: 'success',
  })
}

</script>

<template>
  <div>


    <div class ="bottom-center">

      <el-button @click="showGoodLuck">点我加好运</el-button>

    </div>
  </div>

</template>

<style scoped>.bottom-center {
  display: flex;
  justify-content: center;
  position: fixed;
  bottom: 20px;
  width: 100%;
}
</style>
